package website.haicheng.api.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import website.haicheng.api.entity.SysLogs;
import website.haicheng.core.base.Resp;
import website.haicheng.core.constant.ServiceNameConstant;

/**
 * @description:
 * @author: 582895699@qq.com
 * @time: 2021/2/10 下午 03:21
 */
@FeignClient(value = ServiceNameConstant.CLOUD_SYSTEM)
public interface LogService {

    /**
     * 保存操作日志
     *
     * @param sysLogs
     * @return
     */
    @PostMapping(value = "/logs/saveAccessLog")
    Resp saveAccessLog(@RequestBody SysLogs sysLogs);
}
